package com.ymatou.iapi.refund.parameter;

public enum AccepterTypeEnum {
	  /**
     * 买手
     */
    Seller(0, "买手"),

    /**
     * 洋管家
     */
    YmtSteward(1, "洋管家"),
    /**
     * 洋管家
     */
    Buyer(2, "买家"),;

    private int code;

    public int getCode() {
        return this.code;
    }

    private String message;

    public String getMessage(){
        return this.message;
    }

    private AccepterTypeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public static AccepterTypeEnum codeOf(Integer code){
        if(code == null) {
            return null;
        }
        for (AccepterTypeEnum accepterTypeEnum : AccepterTypeEnum.values()) {
            if(accepterTypeEnum.getCode() == code.intValue()){
                return accepterTypeEnum;
            }
        }
        return null;
    }
}
